<?php
	
	namespace Aspic\Form\Element;
	
	/**
	 * An element that can be mapped (DataElementInterface elements and Forms)
	 */
	interface MappableElementInterface {
		
		/**
		 * @return string Object notation in to which object will correspond
		 * in the bind() returned array / object (relative to current form)
		 */
		public function getMappedTo();
		
		/**
		 * Define the "mappedTo" value
		 * An element cannot be mapped to a value that is in an other form with
		 * a DataModel set. The mapping hierarchy should keep same level node with 
		 * the form hierarchy. So, "brothers" should be "brothers" in the two ways.
		 * @param string $objectNotation
		 */
		public function setMappedTo($objectNotation);
		
		public function isMapped();
		
	}